﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MockPrjTeam4.Entity;
using MockPrjTeam4.DAO;

namespace MockPrjTeam4.Biz
{
    public class DepartmentsBiz
    {
        public static bool AddDepartment(Departments dep)
        {
            return DepartmentsDAO.AddDepartment(dep);
        }

        public static IList<Departments> GetListDepartments()
        {
            return DepartmentsDAO.GetListDepartments();
        }

        public static IList<Departments> GetListActiveDepartments()
        {
            return DepartmentsDAO.GetListActiveDepartments();
        }
        

        public static Departments GetDepartmentById(int id)
        {
            return DepartmentsDAO.GetDepartmentById(id);
        }
             
        public static IList<Departments> Search(string range, string isActive)
        {
            return DepartmentsDAO.Search(range, isActive);
        }

    }
}